package com.gc.services.impl;

import com.gc.dao.custom.DeviceUseMapper;
import com.gc.dto.DeviceUseDTO;
import com.gc.pojo.SysDeviceUse;
import com.gc.services.DeviceUseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeviceUseServiceImpl implements DeviceUseService {
    @Autowired
    private DeviceUseMapper deviceUseMapper;
    @Override
    public List<DeviceUseDTO> getListByUid(Integer uid) {
        return deviceUseMapper.selectByUid(uid);
    }

    @Override
    public List<DeviceUseDTO> getAll() {
        return deviceUseMapper.selectAll();
    }
}
